package day9;

/**
 * @author oldliu
 * @since 1.0
 */
//usb电风扇
public class USBCooler implements USB{
    private String brand;//品牌
    private int money;//价格

    public USBCooler(String brand, int money) {
        this.brand = brand;
        this.money = money;
    }


    @Override
    public void start() {
        System.out.println("这个"+brand+"的电风扇接上了usb接口，开始转动了");
        System.out.println("冷风出来了。。。");
    }

    @Override
    public void stop() {
        System.out.println("电风扇被移除了，停止转动！");
    }
    public void makeCold(){
        System.out.println("这个电风扇让人觉得凉快");
    }
    @Override
    public String toString() {
        return "电风扇{" +
                "brand='" + brand + '\'' +
                ", money=" + money +
                '}';
    }
}
